package com.zz.course.group;

import org.testng.annotations.AfterGroups;
import org.testng.annotations.BeforeGroups;
import org.testng.annotations.Test;

public class MethodGroup {

    @Test(groups = {"server"})
    public void case01 () {
        System.out.println("这是服务端分组的case01...");
    }
    @Test(groups = {"server"})
    public void case02 () {
        System.out.println("这是服务端分组的case02...");
    }
    @Test(groups = {"server"})
    public void case03 () {
        System.out.println("这是服务端分组的case03...");
    }


    @Test(groups = {"client"})
    public void case04 () {
        System.out.println("这是客户端分组的case04...");
    }
    @Test(groups = {"client"})
    public void case05 () {
        System.out.println("这是客户端分组的case05...");
    }
    @Test(groups = {"client"})
    public void case06 () {
        System.out.println("这是客户端分组的case06...");
    }

    @BeforeGroups(groups = "server")
    public void beforeGroup(){
        System.out.println("beforeGroup 执行了....");
    }

    @AfterGroups(groups = "server")
    public void afterGroups(){
        System.out.println("afterGroups 执行了....");
    }


}
